Optimize Workflows with Advanced Gadgets